import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutterwebsite/model/product.dart';
import 'dart:async';

import 'package:flutterwebsite/pages/home_banner.dart';
import 'package:flutterwebsite/services/product_service.dart';
import '../utils/utils.dart';
class ProductDetailPage extends StatelessWidget{
  final ProductItemModel item;
  ProductDetailPage({Key key,@required this.item}):super(key:key);

  @override
  Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text(item.name),
        ),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.start,
          children: <Widget>[
            Image.asset(
              item.imageUrl,
              fit: BoxFit.cover,
            ),
            Padding(
              padding: EdgeInsets.all(16.0),
              child: Text(item.desc),
            )
          ],
        ),
      );

  }
}